<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The SoapFault class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="soapserver.soapserver.html">SoapServer::SoapServer</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="soapfault.construct.html">SoapFault::__construct</a></div>
 <div class="up"><a href="book.soap.html">SOAP</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.soapfault" class="reference">

 <h1 class="title">The SoapFault class</h1>
 

 <div class="partintro"><p class="verinfo">(PHP 5 &gt;= 5.0.1)</p>


  <div class="section" id="soapfault.intro">
   <h2 class="title">简介</h2>
   <p class="para">
    Represents a SOAP fault.
   </p>
  </div>


  <div class="section" id="soapfault.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <strong class="classname">SoapFault</strong>
     </span>
     
     <span class="ooclass">
      <span class="modifier">extends</span>
      <a href="class.exception.html" class="classname">Exception</a>
     </span>
     {</div>

    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 继承的属性 */</div>
    <div class="fieldsynopsis">
     <span class="modifier">protected</span>
     <span class="type">string</span>
      <var class="varname"><a href="class.exception.html#exception.props.message">$<var class="varname">message</var></a></var>
    ;</div>
<div class="fieldsynopsis">
     <span class="modifier">protected</span>
     <span class="type">int</span>
      <var class="varname"><a href="class.exception.html#exception.props.code">$<var class="varname">code</var></a></var>
    ;</div>
<div class="fieldsynopsis">
     <span class="modifier">protected</span>
     <span class="type">string</span>
      <var class="varname"><a href="class.exception.html#exception.props.file">$<var class="varname">file</var></a></var>
    ;</div>
<div class="fieldsynopsis">
     <span class="modifier">protected</span>
     <span class="type">int</span>
      <var class="varname"><a href="class.exception.html#exception.props.line">$<var class="varname">line</var></a></var>
    ;</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="methodsynopsis dc-description">
   <span class="methodname"><a href="soapfault.construct.html" class="methodname">__construct</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$faultcode</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$faultstring</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$faultactor</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$detail</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$faultname</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$headerfault</code></span>
  ]]]] )</div>
<div class="methodsynopsis dc-description">
   <span class="methodname"><a href="soapfault.soapfault.html" class="methodname">SoapFault</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$faultcode</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$faultstring</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$faultactor</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$detail</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$faultname</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$headerfault</code></span>
  ]]]] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span><span class="methodname"><a href="soapfault.tostring.html" class="methodname">__toString</a></span>
    ( <span class="methodparam">void</span>
   )</div>

    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 继承的方法 */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">final</span> <span class="modifier">public</span> <span class="type">string</span><span class="methodname"><a href="exception.getmessage.html" class="methodname">Exception::getMessage</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">final</span> <span class="modifier">public</span> <span class="type">Exception</span><span class="methodname"><a href="exception.getprevious.html" class="methodname">Exception::getPrevious</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">final</span> <span class="modifier">public</span> <span class="type">int</span><span class="methodname"><a href="exception.getcode.html" class="methodname">Exception::getCode</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">final</span> <span class="modifier">public</span> <span class="type">string</span><span class="methodname"><a href="exception.getfile.html" class="methodname">Exception::getFile</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">final</span> <span class="modifier">public</span> <span class="type">int</span><span class="methodname"><a href="exception.getline.html" class="methodname">Exception::getLine</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">final</span> <span class="modifier">public</span> <span class="type">array</span><span class="methodname"><a href="exception.gettrace.html" class="methodname">Exception::getTrace</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">final</span> <span class="modifier">public</span> <span class="type">string</span><span class="methodname"><a href="exception.gettraceasstring.html" class="methodname">Exception::getTraceAsString</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span> <span class="methodname"><a href="exception.tostring.html" class="methodname">Exception::__toString</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">final</span> <span class="modifier">private</span> <span class="type">void</span><span class="methodname"><a href="exception.clone.html" class="methodname">Exception::__clone</a></span>
    ( <span class="methodparam">void</span>
   )</div>


   }</div>


  </div>

  
 </div>

 






















<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="soapfault.construct.html">SoapFault::__construct</a> — SoapFault constructor</li><li><a href="soapfault.soapfault.html">SoapFault::SoapFault</a> — SoapFault constructor</li><li><a href="soapfault.tostring.html">SoapFault::__toString</a> — Obtain a string representation of a SoapFault</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="soapserver.soapserver.html">SoapServer::SoapServer</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="soapfault.construct.html">SoapFault::__construct</a></div>
 <div class="up"><a href="book.soap.html">SOAP</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
